<template>
	<view>
		<view class="label">
			<view class="label_text">输入银行卡号</view>
			<view class="textinput flex-between">
				<input type="text" v-model="bank" placeholder="请输入银行卡号" @input='inputChange'
					placeholder-class="phone" />
			</view>
		</view>
		<view class="label">
			<view class="label_text">输入开户银行</view>
			<view class="textinput flex-between">
				<input type="text" v-model="bankname" placeholder="请输入开户银行" @input='inputChange'
					placeholder-class="phone" />
			</view>
		</view>
		<view class="label">
			<view class="label_text">输入开户支行</view>
			<view class="textinput flex-between">
				<input type="text" v-model="bankname1" placeholder="请输入开户支行" @input='inputChange'
					placeholder-class="phone" />
			</view>
		</view>
		<view :class="logining?'isbtn istext':'istext'" @click="logining?tobtn():''">
			提交
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				bank: '',
				bankname: '',
				bankname1: '',
				logining: false
			}
		},
		methods: {
			inputChange() {
				const {
					bank,
					bankname,
					bankname1
				} = this
				if (bank == '' || bankname == '' || bankname1 == '') {
					this.logining = false
				} else {
					this.logining = true
				}
			},
			tobtn() {

			}
		}
	}
</script>

<style lang="scss">
	.label {
		width: 690rpx;
		box-sizing: border-box;
		margin: 0 auto 0;
		padding-top: 30rpx;

		&_text {
			font-family: PingFangSC, PingFang SC;
			font-weight: 500;
			font-size: 28rpx;
			color: #333333;
			line-height: 28rpx;
			text-align: left;
			font-style: normal;
		}

		.textinput {
			width: 690rpx;
			height: 80rpx;
			background: #FFFFFF;
			border-radius: 24rpx;
			padding: 0 20rpx;
			box-sizing: border-box;
			margin-top: 20rpx;
			margin-bottom: 30rpx;
			align-items: center;

			.text1 {
				font-weight: 400;
				font-size: 28rpx;
				color: #333333;
			}

			.text2 {
				font-weight: 500;
				font-size: 28rpx;
				color: #9999FF;
			}
		}

		.img1 {
			width: 2rpx;
			height: 40rpx;
			margin: 0 20rpx;
		}

		.img2 {
			width: 28rpx;
			height: 28rpx;
		}

		.istipcol {
			color: #999999;
		}

		.phone,
		.password {
			font-family: PingFangSC, PingFang SC;
			font-weight: 400;
			font-size: 28rpx;
			color: #CCCCCC;
			text-align: left;
			font-style: normal;
		}
	}

	.istext {
		width: 690rpx;
		height: 88rpx;
		background: #EAEAEA;
		border-radius: 44rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #CCCCCC;
		line-height: 88rpx;
		text-align: left;
		font-style: normal;
		text-align: center;
		margin: 90rpx auto 0;
	}

	.isbtn {
		background: $uni-color-primary;
		color: #FFFFFF;
	}
</style>